package org.cupk2.luser.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.cupk2.base.db.SuperMapper;
import org.cupk2.luser.domain.LocalOrg;

import java.util.List;

/**组织机构 
 */
@Mapper
public interface LocalOrgMapper extends SuperMapper<LocalOrg> {

    @Select("SELECT * FROM ${tableName} where name = #{orgname}")
    List<LocalOrg> findByName(@Param("tableName") String tableName, String orgname);
}